package de.koller.aframe.util.web.basicHTML;

public class ErrorPage extends HTMLPage {
	
	private String errorTitle = "?";
	private String errorMessage = "?";
	
	public ErrorPage( BasicWebServer webroot ) {
		super( webroot );
	}

	public void setMessage( String title, String message ) {
		this.errorTitle = title;
		this.errorMessage = message;
	}
	
	@Override
	protected String getBody() {
		return "<h2>" + this.text( errorTitle, 0xff0000, 9 ) + "</h2>" +
				"<p>" + errorMessage + "</p>";
	}

	
	@Override
	protected String getPageTitle() {
		return "Fehler";
	}
	
}
